EDD\Orders\Refund_Validator A

Total Complexity 66
Dependencies 8
Dependents 1
Total lines 495
Lines of code 231
Logical lines of code 120
Comment lines 183
Methods 15
Properties 7

Methods 15

Method Rating Maintainability Complexity Lines of code
validate_item_and_add_totals()
A
44 13 46
validate_and_format_order_items()
A
54 8 20
validate_and_format_adjustments()
A
54 8 20
validate_and_calculate_totals()
S
54 5 22
set_common_item_args()
S
56 5 17
get_refunded_order_items()
S
59 4 14
get_refunded_adjustments()
S
59 4 14
validate_required_fields()
S
62 4 11
validate_order_item_amounts()
S
60 3 13
validate_adjustment_amounts()
S
60 3 13
get_all_refundable_order_items()
S
61 3 12
get_all_refundable_adjustments()
S
63 3 11
__construct()
S
70 1 6
get_order_adjustments()
S
65 1 9
is_over_refund_amount()
S
79 1 3